package cone;

import zuoye2.Circle;

public class cone {
	private Circle c;
	private double h;
	private double l;

	cone(double R, double H) {
		c = new Circle(R);
		h = H;
		l = Math.sqrt(R * R + H * H);

	}

	public double getVolume() {

		return c.getArea() * h / 3;

	}
	public double getArea() {
		return c.getArea()+(3.14*c.getRadius()*l);
	}
	public static void main(String[] args) {
		System.out.println(222);
	}
}

